package com.ct.threadlocal;


import com.ct.model.UserInfo;

public class UserThreadLocal {


    private static InheritableThreadLocal<UserInfo> threadLocal = new InheritableThreadLocal<>();

    public static void set(UserInfo userInfo){
        threadLocal.set(userInfo);
    }
    public static UserInfo get(){
        return threadLocal.get();
    }
    public static void remove(){
        threadLocal.remove();
    }
}
